Skip to content

[INFRA-843] fix(security): build caddy on 2.11.7 with x/net v0.60.0 - #9988

Merged
sriramveeraghanta merged 1 commit into
previewfrom
fix/infra-843-trivy-nightly-2026-10-12
Oct 15, 2026
Merged

sriramveeraghanta merged 1 commit into
previewfrom
fix/infra-843-trivy-nightly-2026-10-12

Conversation

@pratapalakshmi

@pratapalakshmi pratapalakshmi commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Description

The 2026-10-12 nightly Trivy scan failed plane-proxy, plane-frontend, plane-admin and plane-aio-community. The cause is the caddy binary they ship: golang.org/x/net v0.57.0 (CVE-2026-78669) and the Go 1.26.8 stdlib from caddy:2.11.4-builder-alpine (CVE-2026-78667/78669/97031).

  • Builder caddy:2.11.4-builder-alpine → caddy:2.11.7-builder-alpine, which ships Go 1.27.2. This also upgrades Caddy itself to 2.11.7.
  • go get floors: x/net v0.60.0, x/crypto v0.57.0, x/text v0.42.0. x/net v0.60.0 requires the other two, and a lower text pin would walk x/net back.
  • Caddy 2.11.7 requires grpc v1.83.2, otel v1.46.0 and go-jose/v4 v4.1.5, so those pins and the grpc assertion rise to match. With the old explicit grpc v1.83.1 go get, Go would downgrade Caddy itself to fit.
  • Files: apps/proxy/Dockerfile.ce, apps/web/Dockerfile.web, apps/admin/Dockerfile.admin. The runtime caddy:2.11.4-alpine stage is unchanged, since its binary is replaced by the one built here.

Mirrors makeplane/plane-ee#10234, on the same branch name, so one scan dispatch can cover both repos.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Improvement (change that would cause existing functionality to not work as expected)
  • Code refactoring
  • Performance improvements
  • Documentation update

Screenshots and Media (if applicable)

N/A

Test Scenarios

All built locally for linux/amd64 and scanned with aquasec/trivy:0.70.0 --severity CRITICAL,HIGH --ignore-unfixed --exit-code 1, using the .trivyignore.yaml the nightly scan passes to every leg.

Image Before (nightly run, published :preview) After (this branch)
plane-proxy 4 HIGH (x/net, stdlib 1.26.8 ×3) 0, exit 0 (full image)
plane-frontend 4 HIGH 0, exit 0 (caddy binary from the caddy-builder stage)
plane-admin 4 HIGH 0, exit 0 (caddy binary from the caddy-builder stage)
plane-aio-community 4 HIGH (same caddy) not built here; clears once the images above are rebuilt
  • go version -m on all three binaries: go1.27.2, caddy v2.11.7, x/net v0.60.0, grpc v1.83.2. The in-build grpc assertion passes.
  • caddy validate on Caddyfile.ce fails without runtime env ("server block without any key"). The published Caddy 2.11.4 image fails identically, so that's pre-existing and needs the runtime env.
  • Not verified: the full web/admin frontend images (only their caddy stage was built), arm64, and serving live traffic.

References

  • Work item: INFRA-843
  • EE counterpart: makeplane/plane-ee#10234

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated the Caddy-based components used by the web, admin, and proxy services to newer versions, along with their supporting libraries.
    • No user-facing functionality changes are included in this update.

The caddy binary in plane-proxy, plane-frontend, plane-admin and the
community AIO carried golang.org/x/net v0.57.0 (CVE-2026-78669) and the Go
1.26.8 stdlib from caddy:2.11.4-builder-alpine (CVE-2026-78667/78669/97031).
caddy:2.11.7-builder-alpine ships Go 1.27.2, and the go get floors move to
x/net v0.60.0, which needs x/crypto v0.57.0 and x/text v0.42.0.

Caddy 2.11.7 requires grpc v1.83.2, otel v1.46.0 and go-jose/v4 v4.1.5, so
those pins and the grpc assertion rise to match; an explicit go get of the
older grpc would otherwise walk caddy itself back to an older release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 12, 2026 10:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@makeplane

makeplane Bot commented Oct 12, 2026

Copy link
Copy Markdown

@coderabbitai

coderabbitai Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b00e7849-2102-4608-a4a8-0febc81ccf2a

📥 Commits

Reviewing files that changed from the base of the PR and between bab49bb and 11b0fd4.


📒 Files selected for processing (3)
  • apps/admin/Dockerfile.admin
  • apps/proxy/Dockerfile.ce
  • apps/web/Dockerfile.web

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.



📝 Walkthrough

Walkthrough

The admin, proxy, and web Dockerfiles update their Caddy builder images and Go module versions. Each build now checks for gRPC v1.83.2 in the resulting binary.

Changes

Caddy Builder Updates

Layer / File(s) Summary
Builder versions and build checks
apps/admin/Dockerfile.admin, apps/proxy/Dockerfile.ce, apps/web/Dockerfile.web
The Dockerfiles update Caddy builder versions and Go module pins. Each build check now requires gRPC v1.83.2 and fails if the version is absent.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: akshat5302


Merge Risk: ⚪ Minimal · up to 11b0f

No actionable merge-blocking issue is identified. The reported build checks are limited to linux/amd64; arm64 builds and live traffic remain unverified.

Pre-merge checks | Passed 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check Passed The title clearly identifies the security fix, the Caddy 2.11.7 upgrade, and the x/net v0.60.0 dependency update.
Description check Passed The description is complete and follows the repository template. It explains the security issue, lists affected files and dependency changes, identifies the change type, records detailed test scenario…
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants